<div class="main-page">
    <a href="<?php echo $data->getDetailLink(); ?>">
        <div class="item-post">            
            <span><img width="32px" height="32px" src="<?php echo Yii::app()->createUrl($data->main_image) ?>"/></span>
            <span><?php echo $data->title; ?></span><?php if($data->hot == 1): ?><span><img src="<?php echo Yii::app()->createUrl('css/images/hot.gif') ?>"/></span><?php endif;?>            
            <span class="button-detail"></span>
        </div>
    </a>    
</div>
